<template>
  <div class="container">
    <el-card style="width: 280px; height: max-content" shadow="hover">
      <div class="title">{{ props.data.title }}</div>
      <h3>{{ props.data.data }}</h3>
      <div class="data">
        <slot></slot>
      </div>
      <slot name="footer"></slot>
    </el-card>
  </div>
</template>

<script setup>
const props = defineProps({
  data: {
    type: Object,
    default: () => {},
  },
});
</script>

<style scoped>
.title {
  color: #666;
  font-size: 10px;
}
h3 {
  font-weight: bold;
  margin: 5px 0;
}
.data {
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-bottom: 10px;
  height: 40px;
}
</style>
